module.exports = {
  /**
   * 修改用户信息
   * @url user/kh/updateUser 前端调用的url参数地址
	 */
	main: async (event) => {
		let { data = {}, util, originalParam } = event;
		let { uniID, vk,db } = util;
		if(!data._id) {
			return {
				code: 412,
				msg: '用户uid有误'
			}
		}
		let id = data._id
		delete data._id
		let res = {code: 0, msg: ''};
		// 业务逻辑开始----------------------------------------------------------- 
		res.data = await vk.baseDao.update({
			dbName:"uni-id-users",
			whereJson: {
				"_id": id
			},
			dataJson: data
		},event.util);
		// 对应的sql:
		// 业务逻辑结束-----------------------------------------------------------
		return res;
		}
	}
